<p><a href="<?php echo $this->url(array('controller'=>'type',
        'action'=>'add'));?>">Add new type</a></p>
<table class="mytable">
<tr>
    <th>Name</th>
    <th>Description</th>
    <th>Discount</th>
    <th>&nbsp;</th>
</tr>
<?php foreach($this->typeList as $type) : ?>
<tr>
    <td><?php echo $this->escape($type->name);?></td>
    <td><?php echo $this->escape($type->description);?></td>
    <td><?php echo $this->escape($type->discount);?></td>
    <td>
        <a href="<?php echo $this->url(array('module' => 'admin', 'controller'=>'type',
            'action'=>'update', 'id'=>$type->id));?>">Edit</a>
        <a href="<?php echo $this->url(array('controller'=>'type',
            'action'=>'delete', 'id'=>$type->id));?>">Delete</a>
    </td>
</tr>
<?php endforeach; ?>
</table>